#!/usr/bin/env node

const Num = require('./07-share');

const n1 = new Num();
const n2 = new Num();

n1.add();
n1.add();
console.log(n1.getCount()); // 输出 2
console.log(n2.getCount()); // 输出 2

n2.add();
console.log(n1.getCount()); // 输出 3
console.log(n2.getCount()); // 输出 3